package com.nervenets.web.hibernate.domain;

import com.nervenets.web.enumeration.TypeType;
import com.nervenets.web.hibernate.DomainObject;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 分类
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "types")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Type extends DomainObject {
    private long managerId;
    @Column(columnDefinition = "tinyint")
    private TypeType type;
    private long parentId;
    private String logo;
    private String name;
    @Column(length = 1000)
    private String detail;
    @Column(columnDefinition = "text")
    private String content;
    private boolean enable;
    private int queue;
    private boolean system;//是否是系统分类，为false时，则为用户自定义分类

}
